﻿Imports DAO
Imports DTO

Public Class PhieuNhapBUS
    Public Shared Function themphieunhap(ByVal p As PhieuNhapDTO) As Boolean
        PhieuNhapDAO.Insertphieunhap(p)
        Return True
    End Function

    Public Shared Function themchitietphieunhap(ByVal p As PhieuNhapDTO) As Boolean
        If PhieuNhapDAO.GetPhieuNhapByName(p.MaPhieuNhap, p.MaSach) Is Nothing Then
            PhieuNhapDAO.Insert(p)
            Return True
        Else
            Return False
        End If
    End Function
End Class
